<?php

/*
Add Tile Location (admin_add_tile_loc.php)
*/

$page_title = "Add Tiles to Map";
$rank_check = 7;
include "../header.inc.php";

print "$openHTML";

$findTiles = mysql_query("SELECT * FROM tile_types WHERE game = '$game'");
while ($getTiles = mysql_fetch_array($findTiles))
{
	$tileList .= "<option value=$getTiles[id]>$getTiles[tile_name]";
}

ECHO <<<END

<FORM ACTION="admin_add_tile_loc.pro.php?game=$game" METHOD=POST>

<select name=tileType>
<option>Choose a tile</option>
$tileList
</select>

<p>X Cordinate: <input type=text name=x_cord> Current Lowest: $xLow Current Highest: $xHigh<br>
Y Cordinate: <input type=text name=y_cord> Current Lowest: $yLow Current Highest: $yHigh</p>

<p><INPUT TYPE=checkbox NAME=moveThrough VALUE=1 CHECKED> - Uncheck this if you want it to be a roadblock or obsticle. BUILDINGS YOU <b>CAN</b> ENTER SHOULD REMAIN CHECKED!<br>

<p><INPUT TYPE=checkbox NAME=goSomewhere VALUE=1> - Go somewhere?<br>
<font size=-1>Fill the next 2 boxes out ONLY if the box above is checked</font><br>
Page Name: <input type=text name=page_name><br>
Direct To: <input type=text name=direct_to> (FULL URL)</p>

<p><INPUT TYPE=checkbox NAME=findItems VALUE=1> - Find Items?<br>
<font size=-1>Fill the next 2 boxes out ONLY if the box above is checked</font><br>
Find Items: <input type=text name=find_items> (seperated by commas)<br>
Find Item Odds: 1 in <input type=text name=find_item_odds></p>

<p><INPUT TYPE=checkbox NAME=findPets VALUE=1> - Find Pets?<br>
<font size=-1>Fill the next 2 boxes out ONLY if the box above is checked</font><br>
Find Pets: <input type=text name=find_pets> (seperated by commas)<br>
Find Pet Odds: 1 in <input type=text name=find_pet_odds></p>

<p><INPUT TYPE=checkbox NAME=findEnemies VALUE=1> - Find Enemies?<br>
<font size=-1>Fill the next 2 boxes out ONLY if the box above is checked</font><br>
Find Enemies: <input type=text name=find_enemies> (seperated by commas)<br>
Find Enemy Odds: 1 in <input type=text name=find_enemy_odds></p>

<p><INPUT TYPE=submit NAME=Submit VALUE="Add Tile!!"></p>
</CENTER>
</FORM>

END;

print "$closeHTML";
?>
